let Koa = require("koa");

let bodyParser=require("koa-bodyparser");

let templating = require("./templating")

let static = require("koa-static")

let controllers = require("./controllers/index")

let app = new Koa();


//静态文件夹引用
app.use(static(__dirname+"/static"))


app.use(templating)
app.use(bodyParser())
app.use(controllers())

let sort=3000
app.listen(sort);

console.log(`http://127.0.0.1:${sort}`);